package cn.gqr.service;

import cn.gqr.entity.Hot;
import cn.gqr.entity.Largefile;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface HotService {

    List<Hot> findAll();

    //删除
    int delete(int id);

    //添加
    Map<String,Object> addHot(Hot hot, MultipartFile file, Largefile largefile);

    //删除图片
    int delPic(String uuid);

    //id查找
    Largefile findByPicture(String picture);

    //文件上传
    String filesUpload(Largefile largefile, MultipartFile file);

    //id查找hot
    Hot findById(int id);

}
